<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	

	<p:dialog id="findEquipment" header="#{msgs.FindEquipment}" widgetVar="wfindEquipment" modal="true" style="padding: 0px; margin: 0px;"> 
		<h:form id="findEquipmentForm" prependId="false">
			<h:panelGrid columns="2" cellpadding="2">

				<h:outputLabel 	value="#{msgs.Name} :" 	for="findByName" />
				<p:inputText	id="findByName" 		value="#{ equipmentBean.findByName}" 			maxlength="50" 	size="20" />

				<h:outputLabel 	value="#{msgs.Description} :" 	for="findByDescription" />
				<p:inputText	id="findByDescription" 		value="#{ equipmentBean.findByDescription}"	maxlength="100" 	size="45" />
 

				<h:outputLabel 	value="#{msgs.Obs} :" 	for="findByObs" />
				<p:inputText	id="findByObs" 		value="#{ equipmentBean.findByObs}"					maxlength="100" 	size="45" />


				<h:outputLabel	value="#{ msgs.CreatedAt} :" />
				<h:column>
				<p:calendar		id="begCreatedAt"	value="#{equipmentBean.begCreatedAt}"		locale="pt"		timeZone="Brazil/East" selectOtherMonths="true" readOnlyInputText="true"  />
                      #{ msgs.To}
                      <p:calendar		id="endCreatedAt"	value="#{equipmentBean.endCreatedAt}"		locale="pt"		timeZone="Brazil/East" selectOtherMonths="true"	readOnlyInputText="true" />
				</h:column>


				<h:outputLabel	value="#{ msgs.ChangedAt} :" />
				<h:column>
				<p:calendar		id="begChangedAt"	value="#{equipmentBean.begChangedAt}"		locale="pt"		timeZone="Brazil/East" selectOtherMonths="true" readOnlyInputText="true"  />
                      #{ msgs.To}
                      <p:calendar		id="endChangedAt"	value="#{equipmentBean.endChangedAt}"		locale="pt"		timeZone="Brazil/East" selectOtherMonths="true"	readOnlyInputText="true" />
				</h:column>

				<h:outputLabel value="#{ msgs.Status}  :" />
				<p:selectOneRadio value="#{ equipmentBean.findByStatus}">
					<f:selectItem itemLabel="#{ msgs.Active}" 		itemValue="true" />
					<f:selectItem itemLabel="#{ msgs.Inactive}" 	itemValue="false" />
				</p:selectOneRadio>

			</h:panelGrid>
			<p:commandButton value="#{ msgs.Search}"	actionListener="#{equipmentBean.search}"	icon=" ui-icon-search"  process="@form" update=":listEquipmentForm:equipmentsTable,:growl" oncomplete="wfindEquipment.hide()" />
			<p:commandButton value="#{ msgs.Clear}"		type="button"	icon="ui-icon-clean">
				 <p:ajax update="findEquipmentForm" resetValues="true" />  	
			</p:commandButton>
						
		</h:form>
	</p:dialog>

	

	<p:confirmDialog message="#{msgs.DoYouReallyWantToDeleteThisEntry}"	header="#{msgs.Warning}" severity="alert" widgetVar="wconfExcEquipment">
		<h:form prependId="false">
			<p:commandButton value="#{msgs.Yes}" oncomplete="wconfExcEquipment.hide();"	process="@form" actionListener="#{equipmentBean.deleteEquipment}"
				update=":listEquipmentForm:equipmentsTable, :growl, :content"  />
			<p:commandButton value="#{msgs.No }" onclick="wconfExcEquipment.hide();"	type="button" />
		</h:form>
	</p:confirmDialog>

	
</html>	